package com.chenjf.feign;

import com.chenjf.po.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("DEPARTS")
public interface DepartsFeign {

    @GetMapping("/departs/list")
    String list();

    @GetMapping("/departs/list1/{page}/{pageSize}")
    public String list1(@PathVariable Integer page, @PathVariable Integer pageSize);

    @PostMapping("/departs/list2")
    public String list2(@RequestParam Integer page, @RequestParam Integer pageSize);

    @PostMapping("/departs/list3")
    public String list3(@RequestBody Page page);
}
